﻿using FbHelperWP7NonUi.TextHelpers;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Text;

namespace FbHelperNonUiTests
{
    [TestClass()]
    public sealed class TextStyleTest
    {
        [TestMethod()]
        public void TextStyleConstructorTest()
        {
            foreach (int fontSize in new int[] { 1, 2, 20, 40 })
            {
                foreach (bool isItalic in new[] { true, false })
                {
                    foreach (bool isBold in new[] { true, false })
                    {
                        TextStyle target = new TextStyle( fontSize, isItalic, isBold );

                        Assert.AreEqual( fontSize, target.FontSize );
                        Assert.AreEqual( isItalic, target.IsItalic );
                        Assert.AreEqual( isBold, target.IsBold );
                    }
                }
            }
        }
    }
}
